updated a few bugs namely with return values