refactor to define local variable bike