reviewed code and added some hints for further improvements