error was bc (int) doesn't work on ghpages so using int() instead