add alpha/beta functions
made simple version and checked result