more completing of homework
fixed prev