getting closer with math stuff