added method validation