fill functionality added