converted Path to Rectangle for invisible background and added comments