implemented draw feature