removed rm which might be the cause of permission denied error