fixes suggested by @kkoopa thanks!