made code a bit more beautyful