added increment functionality