revised package addition method to a different approach