sweeter looking code