edited for shawns comments