removed code and console logs for debugging.