added functions for continuous running
sizing still not working
merged