fixed based on @stenington's feedback.