some fixes for lab11, need to rollback the float var