attempted to pretty up the code