beautifying app, but having some errors