fixed empty functions, added booleans exception