changed method types to boolean