cleaning up functions code

removing getReps() old code and tidying up post request