fixing errors and using helper :address