typing error fixed thanks to Ethan