Update versions of dependencies
refactor redundant if statement
Whitespace