first attempt, needs testing
add warnings for testing
add int division somewhere