now every function returns a boolean for testing purposes