probably a cleaner way to do this