submissions function seems not working well.