fixed caps locks bug by adding tolowercase function