found the problem with returning