Call and return are not working properly