fixed bugs found while trying it out