fixed problem with statements