adding separator functionality