little bit heavy-handed but does the job for now.