implemented sheet manager but this is slow