quick and dirty solution that works