added crop functions