previous fix worked; tweaked formatting in code