removing file attachment logic