front code cleaning