edited withdraw function
Final edits