modified per hab's comment