change style and use alternative builtin methods