cleaned code and added prev workspace