solved one problem in an awful way