removed console logs and fixed post bug